<?php
namespace app\serverfund\service\integral;

use \app\manage\service\ApiBase;
/**
 * @author:      李颖
 * @DateTime:    2017-06-28 17:41:29
 * @Description: 积分操作日志记录
 */
class IntegralOptionLog extends ApiBase
{
    protected $integralOptionLogValidate = '\app\serverfund\validate\IntegralOptionLog';
    protected $integralOptionLogLogic = '\app\serverfund\logic\IntegralOptionLog';
    // 获取所积分操作日志(分页)
    public function list(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'', 'type'=>'', 'keywords'=>'', 'startTime'=>'', 'endTime'=>'']);
        return $this->oneStepRun($data, 'serverfund/integral/IntegralOptionLog/list', 'list');
    }
    // 获取某些user_ids的的积分操作日志(分页)
    public function listByUserIds(): array
    {
        $data = $this->haveIssetReceiveData(['page'=>'1', 'list_rows'=>'', 'user_ids'=>' ']);
        return $this->oneStepRun($data, 'serverfund/integral/IntegralOptionLog/listByUserIds', 'listByUserIds');
    }
    // 获取某个用户某个状态的积分操作日志分页数据
    public function listByUserType(): array
    {
        $data = $this->haveIssetReceiveData(['user_id'=>'0', 'type'=>' ', 'page'=>'1', 'list_rows'=>'']);
        return $this->oneStepRun($data, 'serverfund/integral/IntegralOptionLog/listByUserType', 'listByUserType');
    }
}